package GameElements;

import java.awt.Color;

import Player.Player;
import Player.PlayerFactory;
import junit.framework.TestCase;

public class PawnTest extends TestCase {

	public void testGetPossessor() {
		Player player = PlayerFactory.getInstance().createPlayer("toto", "HM", null);
		Pawn p = new BasicPawn("img/pawns/green_basic.png", Color.green);
		p.setPossessor(player);
		assertEquals("devrait etre le meme", player, p.getJoueur());
	}

}
